
import request from '@/utils/request'


// 新增表头
export function addseries(data) {
    return request({
      url: '/series/add',
      method: 'post',
      data: data
    })
  }

  // 查询表头列表
export function listseries(query) {
  return request({
    url: '/series/list',
    method: 'get',
    params: query
  })
}
//查询出系列和型号
export function listseriesandspecification(query) {
  return request({
    url: '/series/listspecification',
    method: 'get',
    params: query
  })
}

//删除表头和表身和图片
export function delseriesandspecification(id,crmpictureId) {
  return request({
    url: '/series/' + id+'/'+crmpictureId,
    method: 'delete'
  })
}
// 查询系列详细
export function getseries(id) {
  return request({
    url: '/series/' + id,
    method: 'get'
  })
}

   // 更新系列详情
   export function updateseries(data) {
    return request({
      url: '/series/update',
      method: 'put',
      data: data
    })
}
  
 

